/**
 * 
 */
package com.alstudio.module.xmpp.request.proccesser.discovery;

import com.alstudio.module.xmpp.protocol.xmpp.util.xmlcreator.iq.main.DiscoveryIQCreator;
import com.alstudio.module.xmpp.request.ALUiXmppRequestData;
import com.alstudio.module.xmpp.request.ALUiXmppRequestInvokeCallback;

/**
 * 请求发现数据
 * 
 * @author alonso lee
 * 
 */
public class DiscoveryRequestProccesser implements
		ALUiXmppRequestInvokeCallback {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.xmpp.request.ALUiXmppRequestInvokeCallback#getXmlData
	 * (java.lang.Object, java.lang.String)
	 */
	@Override
	public Object getXmlData(Object data, String domain) {
		// TODO Auto-generated method stub
		ALUiXmppRequestData tmp = (ALUiXmppRequestData) data;

		DiscoveryIQCreator iq = new DiscoveryIQCreator(tmp.getStartIndex(),
				tmp.getEndIndex(), tmp.getStrData1(), domain);
		return iq;
	}

}
